/**
 * 
 */
package it.fuesi.expired.fragments;

import android.app.Fragment;
import android.content.Context;
import android.view.LayoutInflater;

import it.fuesi.expired.MainActivity;
import it.fuesi.expired.adapters.AbstractAdapter;
import it.fuesi.expired.adapters.ItemsAdapter;
import it.fuesi.expired.model.FindParameters;

/**
 * @author pascotto
 *
 */
public class NotExpiredFragment<Item, ItemCollection> extends BaseItemFragment {


    @Override
    public int getCurrentFragmentId(){
        return MainActivity.FRG_POSITION_NOT_EXPIRED;
    }

    @Override
    protected AbstractAdapter getAdapter(LayoutInflater inflater, Context ctx, Fragment fragment) {
        return new ItemsAdapter(inflater, null, ctx, fragment);
    }

    @Override
    protected void fetch(){
        mAdapter.fetch(FindParameters.build().setExpired(false));
    }


}
